When you want to catch exceptions thrown by some code fragment, select it and invoke the Text | Surround with try/catch main menu item. It automatically generates catch blocks for all checked exceptions that are thrown inside the block.